package com.lcx.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/** 
 * @Description  
 * @version 1.0 
 * @author lcx
 * @date 2025/2/9 11:25
 */
@TableName(value = "cinema")
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cinema {
    /**
     * 影院编号
     */
    @TableId(value = "cinema_id", type = IdType.AUTO)
    private Long cinemaId;

    /**
     * 影院名称
     */
    @TableField(value = "cinema_name")
    private String cinemaName;

    /**
     * 影院地址
     */
    @TableField(value = "cinema_address")
    private String cinemaAddress;
    private List<Hall> hallList; //所有的放映厅集合

    // 经度纬度
    @TableField(value = "longitude")
    private String longitude;
    @TableField(value = "latitude")
    private String latitude;

    public List<Hall> getHallList() {
        return hallList;
    }

    public void setHallList(List<Hall> hallList) {
        this.hallList = hallList;
    }

    /**
     * 获取影院编号
     *
     * @return cinema_id - 影院编号
     */
    public Long getCinemaId() {
        return cinemaId;
    }

    /**
     * 设置影院编号
     *
     * @param cinemaId 影院编号
     */
    public void setCinemaId(Long cinemaId) {
        this.cinemaId = cinemaId;
    }

    /**
     * 获取影院名称
     *
     * @return cinema_name - 影院名称
     */
    public String getCinemaName() {
        return cinemaName;
    }

    /**
     * 设置影院名称
     *
     * @param cinemaName 影院名称
     */
    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }

    /**
     * 获取影院地址
     *
     * @return cinema_address - 影院地址
     */
    public String getCinemaAddress() {
        return cinemaAddress;
    }

    /**
     * 设置影院地址
     *
     * @param cinemaAddress 影院地址
     */
    public void setCinemaAddress(String cinemaAddress) {
        this.cinemaAddress = cinemaAddress;
    }
}